const { testConnection } = require('./config/database');

async function test() {
  try {
    await testConnection();
    console.log('✅ 数据库连接成功');
    process.exit(0);
  } catch (error) {
    console.error('❌ 数据库连接失败:', error.message);
    process.exit(1);
  }
}

test();

